package jk.fox.common.payload.request;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @Auther cuichao
 * @Description: RpcRequest
 * @Date: create in 2020/3/30 22:57
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class RpcRequest implements Request {


    private String requestId;

    private String path;

    private Object[] parameters;

    private String[] parameterTypes;

    private String  contentType;



    @Override
    public String getContentType() {
        return contentType;
    }

    @Override
    public String getRequestId() {
        return requestId;
    }

    @Override
    public String getPath() {
        return path;
    }

    @Override
    public String[] getParameterTypes() {
        return parameterTypes;
    }

    @Override
    public Object[] getParameters() {
        return parameters;
    }

    public RpcRequest(String requestId, String path,  Object[] parameters) {
        this.requestId = requestId;
        this.path = path;
        this.parameters = parameters;
    }


}
